package com.genius.smsweb.teachermanage;

import com.genius.smsbase.Controller.GenericController;
import com.genius.smsdao.teachermanage.domain.Department;
import com.genius.smsservice.teachermanage.service.DepartmentManager;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "教师管理-部门", description = "DepartmentController")
@RestController
@RequestMapping("department")
public class DepartmentController extends GenericController<Department,Long,DepartmentManager> {

    DepartmentManager departmentManager;

    @Autowired
    public void setDepartmentManager(DepartmentManager departmentManager){
        this.departmentManager = departmentManager;
        this.manager = this.departmentManager;
    }
}
